package com.mls.fivedistrict.pojo;

import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.Version;

import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 转账记录表
 * </p>
 *
 * @author Five Team
 * @since 2018-05-21
 */
@Data
@Accessors(chain = true)
@TableName("t_transfer_record")
public class TransferRecord extends Model<TransferRecord> {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 转账人用户ID
     */
    private Long userId;
    /**
     * 收账人用户ID
     */
    private Long targetUserId;
    /**
     * 转账积分ID
     */
    private Long integralId;
    /**
     * 转账数量
     */
    private BigDecimal transferValue;
    /**
     * 转账说明
     */
    private String transferRemind;
    private Boolean delete;
    private Integer version;
    private Date createDate;
    private Date updateDate;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
